# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-qtgraph
pkgver=0.11.0
pkgrel=2
pkgdesc="Scientific Graphics and GUI Library for Python"
url="http://www.pyqtgraph.org/"
 # armhf blocked by py3-qt5
arch="noarch !armhf"
license="MIT"
depends="python3 py3-qt5 py3-numpy py3-scipy py3-opengl"
checkdepends="py3-pytest xvfb-run"
source="$pkgname-$pkgver.tar.gz::https://github.com/pyqtgraph/pyqtgraph/archive/pyqtgraph-$pkgver.tar.gz"
builddir="$srcdir/pyqtgraph-pyqtgraph-$pkgver"

build() {
	python3 setup.py build
}

check() {
	xvfb-run python3 test.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="1ef7c3c28359a25861424cf7670dcfe471ba62786ebb0288af72a3f626af49ca51a87ac85fccacb7cadce49b6318efb895a7682fb93aa84ff9e2171134d8071b  py3-qtgraph-0.11.0.tar.gz"
